﻿using System;
using System.Reflection;
using java = biz.ritter.javapi;
using biz.ritter.javapi.lang.annotation;

namespace biz.ritter.javapi.lang.reflect
{
    /// <summary>
    /// AnnotatedElement
    /// </summary>
    public class AnnotatedElement : Method
    {
        internal AnnotatedElement(MethodInfo mi)
            :base(mi)
        {
            
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="t"></param>
        public AnnotatedElement(Type t)
            : this(null as MethodInfo)
        {
            //Activator.CreateInstance(t).
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="m"></param>
        public AnnotatedElement(Method m)
            :this(m.getDelegateInstance())
        {
            
        }

        //public override AnnotatedElement operator =(Type t)
        //{
        //    return new AnnotatedElement(MethodInfo)t);
        //}
        
    }
}
